package com.cqupt.pojo;

public class Business {
    // 业务id（主键）整数类型
    private Integer business_id;
    // 业务的名字 字符串类型
    private String business_name;
    // 业务的类型
    private String business_type;

    public Business() {
    }

    /**
     * 业务 Business 的构造函数
     * @param business_name 传入业务的名字、其他属性为 null
     */
    public Business(String business_name) {
        this.business_name = business_name;
    }

    /**
     * 获取业务实例的 id
     * @return 获取业务实例对应的 id
     */
    public Integer getBusiness_id() {
        return business_id;
    }

    /**
     * 设置业务的 id
     * @param business_id 传入业务的新的 id 值
     */
    public void setBusiness_id(Integer business_id) {
        this.business_id = business_id;
    }

    /**
     * 获取业务的名称
     * @return 返回业务实例对应的 name
     */
    public String getBusiness_name() {
        return business_name;
    }

    /**
     * 设置业务的name
     * @param business_name 传入String类型的值，表业务的名字
     */
    public void setBusiness_name(String business_name) {
        this.business_name = business_name;
    }

    /**
     * 获取业务的类型
     * @return 返回数据库中业务对应的 type 字段
     */
    public String getBusiness_type() {
        return business_type;
    }

    /**
     * 设置业务的类型
     * @param business_type 传入字符串，表业务的 type 字段
     */
    public void setBusiness_type(String business_type) {
        this.business_type = business_type;
    }

    /**
     * 重写父类的 toString 方法
     * @return 返回业务实例的字符串表示
     */
    @Override
    public String toString() {
        return "Business{" +
                "business_id=" + business_id +
                ", business_name='" + business_name + '\'' +
                ", business_type='" + business_type + '\'' +
                '}';
    }
}
